package org.dant;

import java.io.*;
import java.util.*;

public class DantVersion {

    public static void main(String[] args) {
        String version = null;
        try {
            Properties props = new Properties();
            InputStream in = DantVersion.class.getResourceAsStream("/org/dant/version.txt");
            props.load(in);
            in.close();
      
            StringBuffer msg = new StringBuffer();
            msg.append("Dant version ");
            msg.append(props.getProperty("VERSION"));
            msg.append(" compiled on ");
            msg.append(props.getProperty("DATE"));
            version = msg.toString();
        } catch (Exception ioe) {
            System.out.println("Can't get the version number");
        }
        System.out.println(version);
    }
}
